package com.aistar.order.service.impl;


import com.aistar.order.entity.EntranceTicketOrder;
import com.aistar.order.mapper.EntranceTicketOrderMapper;
import com.aistar.order.service.IEntranceTicketOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2019/6/25 0025.
 */
@Service
@Transactional
public class EntranceTicketOrderImpl implements IEntranceTicketOrderService {

   @Autowired
    private EntranceTicketOrderMapper entranceTicketOrderMapper;

    @Override
    public EntranceTicketOrder findById(String id) {
        return entranceTicketOrderMapper.findById(id);
    }

    @Override
    public List<EntranceTicketOrder> findMyOrder(String id) {
        return entranceTicketOrderMapper.findMyOrder(id);
    }

    @Override
    public List<EntranceTicketOrder> findAll(String id) {
        return entranceTicketOrderMapper.findAll(id);
    }

    @Override
    public void save(EntranceTicketOrder entranceTicketOrder) {
entranceTicketOrderMapper.save(entranceTicketOrder);
    }

    @Override
    public void delete(String id) {
entranceTicketOrderMapper.delete(id);
    }

    @Override
    public void update(EntranceTicketOrder entranceTicketOrder) {
entranceTicketOrderMapper.update(entranceTicketOrder);
    }
}
